package com.train.daily.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.train.common.resp.PageResp;
import com.train.daily.dto.ticket.DailyTrainTicketPageDTO;
import com.train.daily.dto.ticket.DailyTrainTicketQueryOneDTO;
import com.train.daily.dto.ticket.DailyTrainTicketReduceTicketDTO;
import com.train.daily.po.DailyTrainTicketPO;
import com.train.daily.resp.ticket.DailyTrainTicketPageResp;
import com.train.daily.resp.ticket.DailyTrainTicketQueryOneResp;

import java.util.List;

/**
 * @author baitiaojun
 * @description 针对表【dailyTrainTicket(余票信息)】的数据库操作Service
 * @createDate 2025-03-07 00:09:31
 */
public interface DailyTrainTicketService extends IService<DailyTrainTicketPO> {

    PageResp<DailyTrainTicketPageResp> pageList(DailyTrainTicketPageDTO dailyTrainTicketPageDTO);

    void remove(Long id);

    void generateDailyTrainTicket(String date, List<String> trainCodes);

    DailyTrainTicketQueryOneResp getDailyTrainTicket(DailyTrainTicketQueryOneDTO dto);

    void batchReduceDailyTrainTicket(List<DailyTrainTicketReduceTicketDTO> dto);
}
